"""
Make a pie chart - see
http://matplotlib.sf.net/matplotlib.pylab.html#-pie for the docstring.

This example shows a basic pie chart with labels optional features,
like autolabeling the percentage, offsetting a slice with "explode",
adding a shadow, and changing the starting angle.

"""
from pylab import *

# make a square figure and axes voorbeeld
figure(1, figsize=(10,10))
ax = axes([0.1, 0.1, 0.8, 0.8])

# The slices will be ordered and plotted counter-clockwise.
labels = 'Win7', 'Vista', 'NT*', 'WinXP', 'Linux', 'Mac','Mobile'
fracs = [56.8, 3.0, 1.8, 22.1, 4.8, 9.2, 1.8]
explode=None



pie(fracs, explode=explode, labels=labels,
                autopct='%4.1f%%', shadow=False, startangle=90,
                )
                # The default startangle is 0, which would start
                # everything is rotated counter-clockwise by 90 degrees,
                # so the plotting starts on the positive y-axis.

title('Use OS Platform October 2012', bbox={'facecolor':'0.8', 'pad':5})

show()




